package kz.edu.sdu.atm;

import java.util.Scanner;
import java.util.regex.Pattern;

import org.junit.Test;


public class TestUtil {

	@Test
	public void testScannerNextPatern() throws Exception {
		Pattern p = Pattern
				.compile("~[a-zA-Z]+:[a-zA-Z]+:[a-zA-Z]+:[a-zA-Z=;0-9.,]*~");
		Scanner in = new Scanner(
				"dafjaldfjkklj~german:password:BALANCE:TO=german;BALANCE=154,123~asfasdsdfher");

		System.out.println(in.findInLine(p));
	}

}
